package com.webbei.product.action;

import com.webbei.product.service.ProductService;

public class ShowProductInfo {
	private ProductService ps;
    private ProductInfo product;
    private int id;
    
    public String execute(){
        product = ps.getProductById(id);
        System.out.println("\n"+product);
    	return "success";
    }
    
	public void setPs(ProductService ps) {
		this.ps = ps;
	}
	public ProductInfo getProduct() {
		return product;
	}
	public void setProduct(ProductInfo product) {
		this.product = product;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
}
